<template>
  <div>
    <h1>第二题</h1>
    <ul v-for="item in crr" :key="item">
      <li>
        {{ item }}
      </li>
    </ul>
    <button @click="add">添加</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      brr: [1, 0, 2, 0, 0, 0, 5],
      crr: [],
    };
  },
  methods: {
    add() {
      this.brr.forEach((res) => {
        this.crr.push(res*2);
      });
    },
  },
};
</script>

<style>
</style>
